package com.neuedu.elmserver.service;

import com.neuedu.elmserver.pojo.Cart;
import com.baomidou.mybatisplus.extension.service.IService;
import com.neuedu.elmserver.vo.ResultVO;

/**
 * <p>
 * 购物车 服务类
 * </p>
 *
 * @author wyh
 * @since 2024-11-11
 */
public interface CartService extends IService<Cart> {

    public ResultVO addCart(Cart cart);

    public ResultVO listCart(Integer businessId, Integer userId);

    public ResultVO updateCart(Cart cart);

    public ResultVO deleteCart(Cart cart);

    public ResultVO cartBusinessCount(Integer userId);

    public ResultVO listCartDetails(Integer businessId, Integer userId);

    public ResultVO getBusinessQuantity(Integer businessId, Integer userId);
}
